import React, { Component } from "react";
import ReactDOM from "react-dom";
import { Provider } from "react-redux";
import store from "./store/index.js";

import Header from "./components/Header"

import $ from "jquery";

$(window).on('scroll',function(){
  if($('html').scrollTop()>200){
    $('mainHeader').hide()
  }else{
    $('mainHeader').show()
  }
})

ReactDOM.render(
  <Provider store={store}>
    <Header />
  </Provider>,
  document.getElementById("app")
);
